gl: Fix issue with EGL + nvidia
authorBenjamin Otte <otte@redhat.com>
Sat, 10 Jul 2021 00:29:17 +0000 (02:29 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Jul 2021 14:28:16 +0000 (16:28 +0200)
commit9c4c4eaaa121d784f591a591b95264647eaece96
treed2c604f08c6d46030b42f2cf04d81e52af9fd163
parent969b3257a7d6042ef0087b7586d4457000f0374c
gl: Fix issue with EGL + nvidia

nvidia sets the default draw buffer to GL_NONE if EGL contexts are
initially bound to EGL_NO_SURFACE which is exactly what we are doing. So
bind them to GL_BACK when drawing, as they should be.

See https://phabricator.services.mozilla.com/D118743 for a discussion
about EGL_NO_CONTEXT and draw buffers.
gdk/wayland/gdkglcontext-wayland.c
gdk/x11/gdkglcontext-egl.c